<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 *
 *
 *
 * @package     h
 * @subpackage  models
 * @category    models
 * @author      hyw
 * @copyright   copyright (c) 2012
 * @filesource
 */
class Insert_model extends  CI_model {

    
	
	function insert_to_sql($data , $table_name) {

		$this->db->insert($table_name, $data); 
		
	}

	function insert( $table_name , $data) {

		$this->db->insert($table_name, $data); 
		
	}

	function query_table($field,$key_id , $table_name ) {
		
		$this->db->where($field,$key_id);
		$this->db->order_by("h_consignment_discuss_id", "DESC"); 
		$query=$this->db->get($table_name);
		return $query;
				
	}

    
	
}